package com.godyao.mall.file.api.feign.fallback;

import com.godyao.mall.core.model.ResultCode;
import com.godyao.mall.core.model.ResultMsg;
import com.godyao.mall.file.api.feign.FileFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author godyao
 * @date 2022年04月21日15:24
 */
@Slf4j
@Component
public class FileFeignFallback implements FileFeign {
    @Override
    public ResultMsg getSign() {
        log.error("File Server Fallback..........");
        return ResultMsg.resultFail(ResultCode.SERVER_FALLBACK.getCode(),ResultCode.SERVER_FALLBACK.getMsg());
    }
}
